set(CMAKE_C_FLAGS_OLD "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS_OLD "${CMAKE_CXX_FLAGS}")
set(BUILD_SHARED_LIBS_OLD ${BUILD_SHARED_LIBS})
set(CMAKE_CXX_CLANG_TIDY_OLD ${CMAKE_CXX_CLANG_TIDY})
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
  set(CMAKE_CXX_CLANG_TIDY "")
  set(CPPINTEROP_ENABLE_TESTING OFF CACHE BOOL "Disable tests")
  set(CPPINTEROP_USE_REPL ON CACHE BOOL "Use Clang REPL instead of Cling")
  set(CPPINTEROP_INCLUDE_DOCS OFF CACHE BOOL "Disable doc generation")
  set(CPPINTEROP_ENABLE_DOXYGEN OFF CACHE BOOL "Disable doxygen")
  set(CPPINTEROP_ENABLE_SPHINX OFF CACHE BOOL "Disable sphinx")

  add_subdirectory(third-party/cppinterop EXCLUDE_FROM_ALL)

  unset(CPPINTEROP_ENABLE_TESTING)
  unset(CPPINTEROP_USE_REPL)
  unset(CPPINTEROP_INCLUDE_DOCS)
  unset(CPPINTEROP_ENABLE_DOXYGEN)
  unset(CPPINTEROP_ENABLE_SPHINX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_OLD}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_OLD}")
set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_OLD})
set(CMAKE_CXX_CLANG_TIDY ${CMAKE_CXX_CLANG_TIDY_OLD})
